package com.xuzz.study.thread.threadpool;

import com.xuzz.study.datastructure.LinkedBlockingQueue;

public class Executors {

    public static ThreadPoolExecutor newFixedThreadPool(int nThreads)
    {
        return new ThreadPoolExecutor(nThreads,
                nThreads,
                new LinkedBlockingQueue<Runnable>(2),
                new MyThreadFactory());
    }
}
